package com.borrowed.book.book.mapper;

import com.borrowed.book.book.domain.SShippingAddress;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SShippingAddressMapper {
    int insert(SShippingAddress record);

    int insertSelective(SShippingAddress record);

    void updateIsDefaultAddressByOpenId(Map map);

    int deleteById(Long id);

    int updateShippingAddress(SShippingAddress address);

    List<SShippingAddress> selectShippingAddressList(Map map);
}